package com.aaa.stock.controller;

import com.aaa.entity.StockMedicines;
import com.aaa.stock.service.MedicinesService;

import com.aaa.stock.vo.MedicinesVo;

import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/stock/api/AAA")
public class Medicinser {
    @Autowired
    private MedicinesService medicinesService;
//对外提供接口
//    药品列表
    @PostMapping("semed/{currentPage}/{pageSize}")
    public Result<IPage<StockMedicines>> semd(
            @PathVariable Integer currentPage,
            @PathVariable Integer pageSize,
            @RequestBody MedicinesVo medicinesVo
    ){
        return medicinesService.findByConditio(currentPage,pageSize,medicinesVo);
    }
}
